package com.yzc.model.entity.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yzc.model.entity.base.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @TableName t_menu
 */
@TableName(value ="t_menu")
@Data
public class MenuBean extends BaseEntity {

    private String name;

    private String url;

    private String icon;

    private String memo;

    private Integer px;
//
//    @TableLogic
//    private Integer state;

    private Integer parentid;


    //扩展字段
    @TableField(exist = false)
    private String parentname;//上级菜单名称
    @TableField(exist = false)
    private List<MenuBean> children;

}